package com.tangyuan.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tangyuan.model.VideoHot;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description: video_hot
 * @Author: jeecg-boot
 * @Date:   2024-03-12
 * @Version: V1.0
 */
@Mapper
public interface VideoHotMapper extends BaseMapper<VideoHot> {

    /**
     * 获取付费电影id  userId==null 获取全部  userId!=null 获取用户没看过付费视频Id
     * @param userId 用户
     * @return 视频Id
     */
    List<Long> getHotMovieId(Long userId, IPage<VideoHot> page);
}
